﻿using System;
using Besture.Bll;
using Besture.Common;

namespace Besture.UI.Admin.Control
{
    public partial class SelecteSort : BaseControl
    {
        /// <summary>
        /// 表名
        /// </summary>
        public string Table { get; set; }


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!EditPage)
            {
                txtSortID.Text = SortService.GetSortID(Table, EditPage);
            }
        }
        /// <summary>
        /// 排序值
        /// </summary>
        public int SortValue
        {
            get { return Convert.ToInt32(txtSortID.Text); }
            set { txtSortID.Text = value.ToString(); }
        }
    }
}